<div class="row">
    <div class="col-xs-12 col-sm-offset-2 col-sm-8">
        <div class="page-header">
            <h4>联系我们</h4>
        </div>
        <div class="clearfix"></div>
        <?php if (validation_errors()) { ?>
            <div class="alert alert-warning">
                <?php echo validation_errors(' ', ' '); ?>
            </div>
        <?php } ?>
        <div class="m_t_10">
            <div class="row">
                <div class="col-sm-9">
                    <div class="white_box">
                        <div class="box-body">
                            <?php echo form_open('', 'class="label_normal"'); ?>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label
                                            for="name">您的名字</label>
                                        <input type="text" class="form-control input-sm" name="name" id="name"
                                               value="<?php echo set_value('name'); ?>"
                                               required="required"/>
                                    </div>
                                    <div class="form-group">
                                        <label
                                            for="email">您的邮箱</label>

                                        <div class="input-group">
                                            <span class="input-group-addon">
                                                <span class="fa fa-envelope"></span>
                                            </span>
                                            <input type="email" class="form-control input-sm" id="email" name="email"
                                                   value="<?php echo set_value('email'); ?>"
                                                   required="required"/>
                                        </div>
                                    </div>
                                   
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label
                                            for="subject">留言主题</label>
                                        <input type="text" class="form-control input-sm" id="subject" name="subject"
                                               value="<?php echo set_value('subject'); ?>"
                                               required="required"/>
                                    </div>
                                    <div class="form-group">
                                        <label
                                            for="message">留言内容</label>
                                        <textarea name="message" id="message" class="form-control input-sm" rows="9"
                                                  cols="25"
                                                  required="required"><?php echo set_value('message'); ?></textarea>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <button type="submit" class="btn btn-primary pull-right btn-sm" id="btnContactUs">
                                        <i class="fa fa-send"></i> 发送留言
                                    </button>
                                </div>
                            </div>
                            <?php echo form_close(); ?>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3">
                    <h4><span class="fa fa-globe"></span> 联系方式</h4>
                    <hr class="hr-sm"/>
                    <address>
                        <?php echo str_replace('\r\n', '', $this->config->item('office_address')); ?>
                    </address>
                </div>
            </div>
        </div>
    </div>
</div>